Skip to content

Smoke-test packaged Unix pkg-config output - #197

Open
devnoname120 wants to merge 2 commits into
vitasdk:masterfrom
devnoname120:test/pkgconf-unix-bootstrap-flags
Open

devnoname120 wants to merge 2 commits into
vitasdk:masterfrom
devnoname120:test/pkgconf-unix-bootstrap-flags

Conversation

@devnoname120

Copy link
Copy Markdown
Member

Problem

The packaged-SDK smoke test exercised the real installed arm-vita-eabi-pkg-config frontend and bundled pkgconf, but only asked for --modversion. That cannot distinguish Unix compiler/linker syntax from the MSVC syntax reported on Linux in vita-toolchain#305's follow-up.

As a result, an SDK could pass its release smoke test while returning /I, /libpath:, and .lib flags on Unix.

Changes

  • advance the vita-toolchain pin to the merged Unix wrapper fix from Keep Unix pkgconf output in Unix syntax vita-toolchain#309;
  • run the freshly installed SDK wrapper and bundled pinned pkgconf with every relevant host variable polluted, including PKG_CONFIG_MSVC_SYNTAX=1;
  • query a real target .pc file with --cflags and --libs;
  • require Unix -I, -L, and -lprobe output and reject MSVC forms.

This runs in the bootstrap smoke path, after the actual SDK archive has been built and installed, so it tests the artifact that would be published rather than inspecting wrapper source.

Verification

  • red/green bootstrap harness: the prior vita-toolchain pin failed with pkg-config frontend returned non-Unix cflags: /I...; the new pin passed;
  • all CMake script tests;
  • all buildscripts protocol tests;
  • all CI script tests, including the PowerShell bootstrap contract in a container;
  • bootstrap-archive and core-package tests;
  • bash -n scripts/ci/build-host.sh;
  • git diff --check.

tests/package/test-vdpm-bundle.sh requires a complete stage-1 SDK locally; the pull-request build matrix exercises that path.

Exercise the freshly installed SDK wrapper with its bundled pkgconf under hostile host variables. Check real compiler and linker output so MSVC syntax cannot be published by a Unix bootstrap unnoticed.
Advance the pinned vita-toolchain to the merged fix that removes PKG_CONFIG_MSVC_SYNTAX from the Unix wrapper environment and carries the matching integration coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant